package com.yogee.topseller.activity;

import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.widget.TextView;

import com.yogee.topseller.R;
import com.yogee.topseller.activity.base.HttpActivity;
import com.yogee.topseller.fragment.GongsiProFragment;
import com.yogee.topseller.layout.TitleLayout;
import com.yogee.topseller.utils.TabLayoutUtil;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/5/10.
 */

public class GongsiDetailActivity extends HttpActivity {
    @BindView(R.id.add_card_titlelayout)
    TitleLayout titlelayout;
    @BindView(R.id.tv_gs_name)
    TextView tv_gs_name;
    @BindView(R.id.tv_gs_desc)
    TextView tv_gs_desc;
    @BindView(R.id.tl_gs)
    TabLayout tl_gs;
    @BindView(R.id.vp_gs)
    ViewPager vp_gs;

    //Fragment的数据集合
    List<Fragment> fragmentList = null;
    //标题数据集合
    List<String> titles = null;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_gs_detail;
    }

    @Override
    protected void initView() {
        titlelayout.setActivity(this);
        titlelayout.setTitle("公司详情");

        fragmentList = new ArrayList<>();
        fragmentList.add(new GongsiProFragment());
        fragmentList.add(new GongsiProFragment());
        fragmentList.add(new GongsiProFragment());
        titles = new ArrayList<>();
        titles.add("参与融资");
        titles.add("参与担保");
        titles.add("参与发行");
        new TabLayoutUtil(getSupportFragmentManager(), findViewById(R.id.ll_gongsi_detail), fragmentList, titles, 110);
    }
}
